package Day7;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/11  14:47
 **/
public   class Animal {

    String name;
    int id;

    public Animal(String name, int id) {
        this.name = name;
        this.id = id;
    }



    public void eat(){
        System.out.println(this.name + "正在吃");
    }

    protected void sleep(){
        System.out.println(this.name + "正在睡觉觉");
    }

    public void intoduction(){
        System.out.println("大家好 ！ 我是:" + this.name);
    }

    public  final Animal move(){
        System.out.println("动物可以移动");
        return null;
    }


}
